<template>
  <div class="zhengtirendu4 base-background-img">
    <div class="ye" @click="playFun(ye)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/4/ye.png">
    </div>
    <div class="yue" @click="playFun(yue)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/4/yue.png">
    </div>
    <div class="yuan" @click="playFun(yuan)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/4/yuan.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'zhengtirendu4',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        ye: {
          url: 'static/youxiao/pdf/zhengtirendu/ye.pdf',
          data: []
        },
        yue: {
          url: 'static/youxiao/pdf/zhengtirendu/yue.pdf',
          data: []
        },
        yuan: {
          url: 'static/youxiao/pdf/zhengtirendu/yuan.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.zhengtirendu4 {
  background: url(~@/assets/youxiaoxianjie/zhengtirendu/4/bg.png);
}
.zhengtirendu4 > div {
  position: absolute; 
}
.ye {
  top: 305px;
  left: 190px;
}
.yue {
  top: 305px;
  left: 430px;
}
.yuan {
  top: 282px;
  left: 755px;
}
</style>
